package com.aeasycredit.credit.tuef.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aeasycredit.credit.tuef.dao.TuefEnquiryAlertDao;
import com.aeasycredit.credit.tuef.model.TuefEnquiryAlert;
import com.aeasycredit.credit.tuef.service.TuefEnquiryAlertService;

@Service
public class TuefEnquiryAlertServiceImpl implements TuefEnquiryAlertService {
    
    @Autowired
    private TuefEnquiryAlertDao tuefEnquiryAlertDao;
    
    @Override
    public List<TuefEnquiryAlert> getListByTuefBasicId(String tuefBasicId) {
        if (tuefBasicId == null) {
            throw new IllegalArgumentException("tuefBasicId不能為空");
        }
        return tuefEnquiryAlertDao.getTuefEnquiryAlertList(tuefBasicId);
    }

}
